package com.wwl.cms.utils.designModeTest.responsibilitychain;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/27 19:46
 * @description:
 */
public class SchoolMasterApprover extends Approver {
    public SchoolMasterApprover(String name) {
        super(name);
    }
    @Override
    public void processRequest(PurchaseRequest request){
        if (request.getPrice()>30000){
            System.out.println("请求编号 id="+request.getId()+"被"+this.name+"处理");
        }else{
            approver.processRequest(request);
        }
    }
}
